//
//  BackgroundLayer2.m
//  SpaceViking
//
//  Created by Long on 12/25/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "BackgroundLayer2.h"

@implementation BackgroundLayer2
- (id)init{
    self = [super init];
    if(self != nil)
    {
        CGSize screenSize = [CCDirector sharedDirector].winSize;
        CCSprite *backgroundImage;
        if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
        {
            backgroundImage = [CCSprite spriteWithFile:@"bg2.png"];
        }else
        {
            // not support iphone
            
        }
        [backgroundImage setPosition:ccp(screenSize.width/2.0f, screenSize.height/2.0f)];
        [self addChild:backgroundImage];
    }
    return self;
}
@end
